package com.work.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mybatis.Page;
import com.work.dao.WorkOrderDao;
import com.work.model.WorkOrderDo;
import com.work.service.WorkOrderService;

@Service(value="workOrderService")
@Transactional  //此处不再进行创建SqlSession和提交事务，都已交由spring去管理了。
public class WorkOrderServiceImpl implements WorkOrderService{

	
	@Resource
	private WorkOrderDao workOrderDao;
	
	@Override
	public List<WorkOrderDo> queryWorkOrder(WorkOrderDo l,Page page) {
		// TODO Auto-generated method stub
		 Map<String, Object> params = new HashMap<String, Object>();  
		 page.setParams(params);
		List<WorkOrderDo> list = workOrderDao.queryWorkOrder(page);
		
		
		
		return list;
	}
	 
	//private LoginDao loginMapper;

	 
	
//	@FilterAnnotaions
//	public List<LoginDo> findLogin(LoginDo l) {
//		List<LoginDo> list = loginMapper.findLogin(l);
//		return list;
//	}

}
